package net.guerlab.credits.creditsoption.service;

import java.io.Serializable;
import java.util.List;

import net.guerlab.credits.creditsoption.entity.CreditsOption;
import net.guerlab.credits.creditsoption.entity.CreditsOptionSearchParams;

/**
 * 积分设置服务接口
 * 
 * @author guer
 *
 */
public interface CreditsOptionService extends Serializable {

    /**
     * 查询一个积分设置
     * 
     * @param searchParams
     *            查询参数对象
     * @return 积分设置
     */
    public CreditsOption findOne(CreditsOptionSearchParams searchParams);

    /**
     * 查询一组积分设置
     * 
     * @param searchParams
     *            查询参数对象
     * @return 积分设置集合
     */
    public List<CreditsOption> findList(CreditsOptionSearchParams searchParams);

    /**
     * 查询积分设置数量
     * 
     * @param searchParams
     *            查询参数对象
     * @return 积分设置数量
     */
    public int findCount(CreditsOptionSearchParams searchParams);

    /**
     * 保存积分设置
     * 
     * @param creditsOption
     *            积分设置
     */
    public void save(CreditsOption creditsOption);

    /**
     * 更新积分设置
     * 
     * @param creditsOption
     *            积分设置
     */
    public void update(CreditsOption creditsOption);

    /**
     * 删除积分设置
     * 
     * @param creditsOption
     *            积分设置
     */
    public void delete(CreditsOption creditsOption);
}
